﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manager/Manager.master" AutoEventWireup="true" CodeFile="ChangePasswordManager.aspx.cs" Inherits="Manager_ChangePasswordManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" Runat="Server">
    Chandge password | Aptitude Online Test
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyContent" Runat="Server">
 <div class="header">
        <span><span class="ico  gray spreadsheet"></span>Change password </span>
    </div>
    <!-- End header -->
    <div class=" clear">
    </div>
    <div class="content">       
        <asp:Label ID="lblmes" runat="server" Text=""></asp:Label>
        
        <p>
            <asp:Label ID="lblPasswordCurrent" runat="server" Text="Current Password" Width="150px"></asp:Label>
            <asp:TextBox ID="txtPasswordCurrent" runat="server" TextMode="Password" Width="250px" 
                CausesValidation="True"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtPasswordCurrent" Display="Dynamic" 
                ErrorMessage="Password current is not empty"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtPasswordCurrent" Display="Dynamic" 
                ErrorMessage="Password current at least 6 character" 
                ValidationExpression="^[a-zA-Z0-9]{6,}$"></asp:RegularExpressionValidator>
        </p>
        <p>
            <asp:Label ID="lblPassword" runat="server" Text="Password" Width="150px"></asp:Label>
            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="250px" 
                CausesValidation="True"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtPassword" Display="Dynamic" 
                ErrorMessage="Password is not empty"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtPassword" Display="Dynamic" 
                ErrorMessage="Password at least 6 character" 
                ValidationExpression="^[a-zA-Z0-9]{6,}$"></asp:RegularExpressionValidator>
        </p>
        <p>
            <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm password" 
                Width="150px"></asp:Label>
            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" 
                Width="250px" CausesValidation="True"></asp:TextBox>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtConfirmPassword" ControlToValidate="txtPassword" 
                Display="Dynamic" ErrorMessage="Password and Confirm password not match"></asp:CompareValidator>
        </p>
         <div style="padding: 2px 0px;">
            <asp:Button ID="btnChange" class="uibutton normal but_login"  runat="server" 
                Text="Change" onclick="btnChange_Click" />
                    </div>
        <script language="javascript" type="text/javascript">
            $(document).ready(function () {
                //check show message
                if ($("#ctl00_BodyContent_lblmes").text() != "") {
                    setTimeout('showSuccess( $("#ctl00_BodyContent_lblmes").text())', 100);
                }
            });
          
        </script>
    </div>
</asp:Content>

